export function useState(initialValue: any) {
  const state = ref(initialValue);

  const setState: any = (newValue: any) => {
    state.value =
      typeof newValue === "function" ? newValue(state.value) : newValue;
  };

  return [state, setState];
}
